﻿@model Angel.Web.Models.DeleteUserModel

@{
    ViewBag.Title = "Delete User";
}


<style type="text/css"> .fieldLabelArea {width: 50%;}</style>
<section id="content" role="main">
    <header>
        <h1 id="admin-page-heading">Users</h1>
        <div id="upm-notifications" class="aui-dd-parent upm-admin-headers upm-notifications-jira dd-allocated loaded"><a title="Plugin Notifications" id="upm-notifications-trigger" class="aui-dd-trigger" href="#"><span id="upm-notifications-icon"></span><span id="upm-notifications-count">0</span></a>
            <div id="upm-notifications-dropdown" class="upm-notifications-dropdown aui-dropdown hidden"><h3>Plugin Notifications</h3><p id="upm-no-notifications">There are no plugins requiring your attention at this time.</p>
            </div>
        </div>
    </header>         
    <div class="content-container">              
        <div class="content-body aui-panel">
	        <table class="jiraform maxWidth" id="delete_user_confirm">
	            <tbody>
                    <tr class="titlerow">
		                <td colspan="2" class="jiraformheader">
                        <h3 class="formtitle" id="del-user">Delete User: @Html.DisplayFor(model => model.username)</h3>
                        </td>
	                </tr>
	                <tr class="descriptionrow">
		                <td colspan="2" class="jiraformheader">
                            <div class="desc-wrap">
     
                                <div class="aui-message warning"><span class="aui-icon icon-warning"></span>
                                                        <p>Do you want to delete this username?</p>
                                                        <p>Please note that any components with this 
                                user set as the lead will have the component lead set to empty when the 
                                user is deleted.</p>
                                </div>
                            </div>
                        </td>
	                </tr>
                     @using (Html.BeginForm()) {
    	                <tr class="buttons-container">   
                            <td class="jiraformfooter">&nbsp;</td>
                            <td colspan="1">   
                                <div class="buttons-container">
                                    <div class="buttons">
                                        <input  value="Delete" class="aui-button" type="submit"/>
                                        <a>@Html.ActionLink("Cancel", "Index")</a>               
                                    </div>
                                </div>
		                    </td>
	                    </tr>   
                    }
	                    @*<tr>		
				                    <td class="fieldLabelArea">		
		                    Shared Filters              
		                    </td>
	                    <td class="fieldValueArea">
                             <span id="numberOfFilters">0</span>
	                    </td>
                        </tr>
	                    <tr>	
				            <td class="fieldLabelArea">
		                        Others' Favorite Filters               
		                    </td>
	                        <td class="fieldValueArea">
                                 <span id="numberOfOtherFavouritedFilters">0</span>
                                 <div class="fieldDescription">
                                    (Number of this user's filters that other users have nominated as favorites)
                                 </div>
	                        </td>
                        </tr>
	                    <tr>
				            <td class="fieldLabelArea">
		                        Shared Dashboards
		                    </td>
	                        <td class="fieldValueArea">
                                 <span id="numberOfNonPrivatePortalPages">0</span>
	                        </td>
                        </tr>
	                    <tr>	
				            <td class="fieldLabelArea">
		                        Others' Favorite Dashboards
		                    </td>
	                        <td class="fieldValueArea">
                                 <span id="numberOfOtherFavouritedPortalPages">0</span>
                                <div class="fieldDescription">
                                        (Number of this user's dashboards that other users have nominated as favorites)
                                </div>
	                        </td>
                        </tr>
	                    <tr>	
				            <td class="fieldLabelArea">
		                        Assigned Issues     
		                    </td>
	                        <td class="fieldValueArea">
                                 0
	                        </td>
                        </tr>
	                    <tr>
		                    <td class="fieldLabelArea">
		                        Reported Issues
		                    </td>
	                        <td class="fieldValueArea">
                                 0
	                        </td>
                        </tr>
                    *@
                        <tr class="hidden">
                            <td>
                            <input id="returnUrl" name="returnUrl" value="UserBrowser.jspa" type="hidden">
                            </td>
                        </tr>
	            </tbody>
            </table>	
            <input id="atl_token" name="atl_token" value="B4MF-F29A-8LXE-JKWJ|1e705b57682186754a18d864934a9f05e6144a94|lin" type="hidden">
        </div>
    </div>     
</section>
<script type="text/javascript">
    $(document).ready(function ()
    {
        var title = $("#del-user").html();
        $("title").html(title + " - Angel");
    });
</script>